﻿@model 软件工程实验.GradeModel

@{
    Layout = "/Views/Shared/_LayoutTeacher.cshtml";
}
<!DOCTYPE html>

<main>
    <h2>Modify</h2>
    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken()
        <div class="form-control">
            <table class="table">
                <thead>
                    <tr>
                        <th>
                            @Html.DisplayNameFor(model => Model.成绩.学号)
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            @Html.TextBoxFor(model => Model.成绩.学号)
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div>
            @if (!string.IsNullOrEmpty(ViewBag.ResultMessage))
            {
                @ViewBag.ResultMessage
            }
        </div>
        <div>
            <table class="table">
                <thead>
                    <tr>
                        <th>
                            @Html.DisplayNameFor(model => model.习题.习题1)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.习题.习题2)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.习题.习题3)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.习题.习题4)
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            @Html.TextBoxFor(model => model.习题.习题1)
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.习题.习题2)
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.习题.习题3)
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.习题.习题4)
                        </td>
                    </tr>
                </tbody>
            </table>
            <table class="table">
                <thead>

                    <tr>
                        <th>
                            @Html.DisplayNameFor(model => model.习题.习题5)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.习题.习题6)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.习题.习题7)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.习题.习题8)
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            @Html.TextBoxFor(model => model.习题.习题5)
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.习题.习题6)
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.习题.习题7)
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.习题.习题8)
                        </td>
                    </tr>
                </tbody>
            </table>
            <table class="table">
                <thead>
                    <tr>
                        <th>
                            @Html.DisplayNameFor(model => model.习题.习题9)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.习题.习题10)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.习题.习题11)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.习题.习题12)
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            @Html.TextBoxFor(model => model.习题.习题9)
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.习题.习题10)
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.习题.习题11)
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.习题.习题12)
                        </td>
                    </tr>
                </tbody>
            </table>
            <table class="table">
                <thead>
                    <tr>
                        <th>
                            @Html.DisplayNameFor(model => model.习题.习题13)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.习题.习题14)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.习题.习题15)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.习题.习题16)
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            @Html.TextBoxFor(model => model.习题.习题13)
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.习题.习题14)
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.习题.习题15)
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.习题.习题16)
                        </td>
                    </tr>
                </tbody>
            </table>
            <table class="table">
                <thead>
                    <tr>
                        <th>
                            @Html.DisplayNameFor(model => model.测试.测试1)

                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.测试.测试2)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.测试.测试3)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.成绩.考试成绩)
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            @Html.TextBoxFor(model => model.测试.测试1)
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.测试.测试2)
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.测试.测试3)
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.成绩.考试成绩)
                        </td>
                    </tr>
                </tbody>
            </table>
            <button type="submit" class="btn btn-primary">提交修改</button>
        </div>
    }
</main>